package org.weso.lodin.utils;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class MD5Utils {

	     public static String generate(String s){
	        MessageDigest m;
			try {
				m = MessageDigest.getInstance("MD5");
			    m.update(s.getBytes(),0,s.length());
		        return new BigInteger(1,m.digest()).toString();
			} catch (NoSuchAlgorithmException e) {
				//Skip
			}
			return "";
	    
	    }
	     
}
